/*
 * @Author: ZhanXie
 * @Date: 2020-09-07 16:53:44
 * @LastEditors: ZhanXie
 * @LastEditTime: 2020-09-09 10:47:56
 * @Description: 用户关注列表
 * @FilePath: /weibo/src/db/model/UserRelation.js
 */
const seq = require('../seq')
const { INTEGER } = require('../types')

const UserRelation = seq.define('userRelation', {
  userId: {
    type: INTEGER,
    allowNull: false,
    comment: '用户 id'
  },
  followerId: {
    type: INTEGER,
    allowNull: false,
    comment: '被关注用户的 id'
  }
})

module.exports = UserRelation